package app.vendorportal;

import core.framework.http.HTTPClient;
import core.framework.task.TaskExecutor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

import javax.inject.Inject;

@Configuration
public class AppConfig {

    @Inject
    Environment env;

    @Bean
    public TaskExecutor taskExecutor() {
        return TaskExecutor.fixedSizeExecutor(25);
    }

    @Bean
    public HTTPClient httpClient() {
        return new HTTPClient();
    }
}
